/* 
 * File:   recording_buffer.h
 * Author: ufk
 *
 * Created on April 23, 2014, 6:15 PM
 */

#ifndef RECORDING_BUFFER_H
#define	RECORDING_BUFFER_H

#ifdef	__cplusplus
extern "C" {
#endif

typedef struct _audio_recorded audio_recorded;
void recording_buffer_init();
guint32 *recording_buffer_new_buffer();
audio_recorded *recording_buffer_get_buffer(guint32 key);
void recording_buffer_append_buffer_small(guint32 key, gint8 *buffer, gsize size);
void recording_buffer_append_buffer(guint32 key, double *buffer, gsize size);
void recording_buffer_inc_attached_recordings(guint32 key);
void recording_buffer_dec_attached_recordings(guint32 key);
GArray *recording_buffer_get_buffer_small_data(guint32 key);
GArray *recording_buffer_get_buffer_data(guint32 key);

#ifdef	__cplusplus
}
#endif

#endif	/* RECORDING_BUFFER_H */

